<header class="am-topbar am-topbar-fixed-top">
  <div class="am-container">
    <h1 class="am-topbar-brand">
      <a href="/">组件平台</a>
    </h1>

    <div class="am-collapse am-topbar-collapse" id="collapse-head">
      <ul class="am-nav am-nav-pills am-topbar-nav">

        <%
        var sel = "";
        for(obj in webmenu_list){
          sel = (obj.url == action_url ? "am-active" : "");
        %>
        <li class="${sel}"><a href="${obj.url}">${obj.name}</a></li>
        <%}%>

        <li ><a href="#">UI展示</a></li>
        <li ><a href="#">公司网站</a></li>

      </ul>

      <!--<div class="am-topbar-right">-->
        <!--<button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm"><span class="am-icon-pencil"></span> 注册</button>-->
      <!--</div>-->

      <div class="am-topbar-right">
        <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm" onclick="window.location.href='/admin'">
          <span class="am-icon-user"></span> 登录</button>
      </div>
    </div>
  </div>
</header>
